﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="PageReportConsultant.aspx.cs" Inherits="ContractManagementSystem.PageReportConsultant" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PanelContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:Panel runat="server" ID="ViewConsultantPanel">
            <h2 class="divTitle">
                List Consultant</h2>
            <div class="divSearch">
                <fieldset style="width: 99%; margin: auto;padding-bottom: 10px; padding-left: 7px;" class="border">
                        <legend><b>Search</b></legend>
                <table style="width: 100%">
                    <tr>
                        <td>
                            FullName:
                            <asp:TextBox runat="server" ID="FullNameTextBoxSearch" AutoPostBack="True" OnTextChanged="FullNameTextBoxTextChanged"></asp:TextBox>
                            <asp:Button ID="Button1" runat="server" Text="Search" />
                        </td>
                        <td style="text-align: right">
                            View:
                            <asp:DropDownList ID="ActiveDropDownList" AutoPostBack="True" runat="server" OnSelectedIndexChanged="ActiveDropDownList_SelectedIndexChanged">
                                <asp:ListItem>View All</asp:ListItem>
                                <asp:ListItem>IsActive</asp:ListItem>
                                <asp:ListItem>InActive</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
                </fieldset>
            </div>
            <asp:ListView runat="server" ItemPlaceholderID="NewItem" ID="ViewAllConsultantListView">
                <LayoutTemplate>
                    <table id="table">
                        <tr>
                            <th>
                                <asp:LinkButton runat="server" ToolTip="Sort" ID="LinkButton1">
                                    FullName
                                </asp:LinkButton>
                                <asp:Image runat="server" ID="SortFullName" ImageUrl="~/App_Themes/Admin/Image/down.png" />
                            </th>
                            <th>
                                <asp:LinkButton runat="server" ToolTip="Sort" ID="LinkButton98">
                                    BirthDate
                                </asp:LinkButton>
                                <asp:Image runat="server" ID="Image1" ImageUrl="~/App_Themes/Admin/Image/down.png" />
                            </th>
                            <th>
                                <asp:LinkButton runat="server" ToolTip="Sort" ID="LinkButton2">
                                    Gender
                                </asp:LinkButton>
                                <asp:Image runat="server" ID="Image2" ImageUrl="~/App_Themes/Admin/Image/down.png" />
                            </th>
                            <th>
                                <asp:LinkButton runat="server" ToolTip="Sort" ID="LinkButton3">
                                    Email
                                </asp:LinkButton>
                                <asp:Image runat="server" ID="Image3" ImageUrl="~/App_Themes/Admin/Image/down.png" />
                            </th>
                            <th>
                                <asp:LinkButton runat="server" ToolTip="Sort" ID="LinkButton4">
                                    PhoneNumber
                                </asp:LinkButton>
                                <asp:Image runat="server" ID="Image4" ImageUrl="~/App_Themes/Admin/Image/down.png" />
                            </th>
                           
                        </tr>
                        <tr>
                            <asp:PlaceHolder runat="server" ID="NewItem"></asp:PlaceHolder>
                        </tr>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr class="odd">
                        <td style="text-align: left">
                            <asp:Label runat="server" ID="ConsultantId" Visible="False" Text='<%#Eval("ConsultantId") %>'></asp:Label>
                            <asp:Label runat="server" ID="FullName" Text='<%#Eval("FullName") %>'></asp:Label>
                        </td>
                        <td style="text-align: left">
                            <asp:Label runat="server" ID="BirthDate" Text='<%#Eval("BirthDate","{0:d}") %>'></asp:Label>
                        </td>
                        <td style="text-align: left">
                            <asp:Label runat="server" ID="Gender" Text='<%#Eval("Gender") %>'></asp:Label>
                        </td>
                        <td style="text-align: left">
                            <asp:Label runat="server" ID="Email" Text='<%#Eval("Email") %>'></asp:Label>
                        </td>
                        <td style="text-align: left">
                            <asp:Label runat="server" ID="PhoneNumber" Text='<%#Eval("PhoneNumber")%>'></asp:Label>
                            <asp:Label runat="server" ID="IsActive" Visible="False" Text='<%#Eval("IsActive")%>'></asp:Label>
                        </td>
                        <td>
                            
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr class="alt">
                        <td style="text-align: left">
                            <asp:Label runat="server" ID="ConsultantId" Visible="False" Text='<%#Eval("ConsultantId") %>'></asp:Label>
                            <asp:Label runat="server" ID="FullName" Text='<%#Eval("FullName") %>'></asp:Label>
                        </td>
                        <td style="text-align: left">
                            <asp:Label runat="server" ID="BirthDate" Text='<%#Eval("BirthDate","{0:d}") %>'></asp:Label>
                        </td>
                        <td style="text-align: left">
                            <asp:Label runat="server" ID="Gender" Text='<%#Eval("Gender") %>'></asp:Label>
                        </td>
                        <td style="text-align: left">
                            <asp:Label runat="server" ID="Email" Text='<%#Eval("Email") %>'></asp:Label>
                        </td>
                        <td style="text-align: left">
                            <asp:Label runat="server" ID="PhoneNumber" Text='<%#Eval("PhoneNumber")%>'></asp:Label>
                            <asp:Label runat="server" ID="IsActive" Visible="False" Text='<%#Eval("IsActive")%>'></asp:Label>
                        </td>
                        <td>
                            
                        </td>
                    </tr>
                </AlternatingItemTemplate>
            </asp:ListView>
            <div style="text-align: center">
            <asp:Button ID="ReportButton" runat="server" Height="25px" Text="Report" 
                Width="76px" onclick="ReportButton_Click" />
            </div>
            
            <div class="divPage">
                <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ViewAllConsultantListView"
                    PageSize="15" OnPreRender="DataPager1_OnPreRender">
                    <Fields>
                        <asp:NextPreviousPagerField />
                        <asp:NumericPagerField CurrentPageLabelCssClass="curent" />
                        <asp:NextPreviousPagerField />
                    </Fields>
                </asp:DataPager>
            </div>
        </asp:Panel>
        <asp:Panel runat="server" ID="EditConsultantPanel">
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
